package com.livegoods.controller;

import com.livegoods.service.BuyActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@CrossOrigin
public class BuyActionController {

    @Autowired
    private BuyActionService buyActionService;

    @RequestMapping("/buytime")
    public Map<String,Object> buytime(String id){
        return  buyActionService.selectById(id);
    }
}
